package moriarty.gwt.client;

import java.util.List;

import moriarty.gwt.shared.DataStoreObject;
import moriarty.gwt.shared.Group;
import moriarty.gwt.shared.Submission;
import moriarty.gwt.shared.User;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("user")
public interface SotdService extends RemoteService {
	String sotdServer(String name) throws IllegalArgumentException;
	void updateEmails(String emails);
	String getSubscriberList();
	void storeSubmission(Submission s);
	List<Submission> retrieveSubmissions();
	List<Group> retreiveAllGroups();
	Group storeGroup(Group g);
	public String getCurrentUserEmail();
	public boolean isCurrentUserAdmin();
	public Boolean isMember(String email);
	void storeUser(User u);
	public User getCurrentUser(String gmailEmail);
	public void updateDataStoreObject(DataStoreObject dso);
}
